package com.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.Interfacese.Register;
import com.actionForm.UserActionForm;
import com.biz.UserMessageHandle;
import com.factory.ProduceObject;

public class RegisterAction extends Action {
	
	public ActionForward execute(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		System.out.println("aaaaaaaaaaaaaaaaaa");
		UserActionForm uaf = (UserActionForm)form;
		ProduceObject po=new ProduceObject();
		Register r=po.produceUserMessageHandle();
		r.register(uaf);
		return mapping.findForward("success");
	}

}
